package ModelLayer;

/**
 * Class for objects of Salesman
 * 
 * @author (AF, RA, KP, RL) 
 * @version (2012.06.05)
 */
public class Salesman extends Person
{
    private String department;

    /**
     * Constructor for objects of class Salesman
     * 
     * @param name name of Salesman as String 
     * @param address address of Salesman as String
     * @param phoneNo phoneNo of Salesman as String
     * @param email email of Salesman as String
     * @param department department of Salesman as String
     * @param city city of Salesman as String
     * @param postalCode postalCode of Salesman as int
     */
    public Salesman(String name, String address, String phoneNo, String email, 
                    String department, String city, int postalCode)
    {
        super(name, address, phoneNo, email, city, postalCode);
        this.department = department;
    }

    /**
     * sets department of salesman
     * 
     * @param department department as String 
     * 
     * @return none
     */
    public void setDepartment(String department)
    {
        this.department = department;
    }
    
    /**
     * finds department of salesman
     * 
     * @param none 
     * 
     * @return department as String
     */
    public String getDepartment()
    {
        return this.department;
    }
}
